const fs = require("fs");
let log = fs.openSync("run.log", "a");

module.exports.info = function(){
	let str = "";
	for(let i=0;i<arguments.length;i++){
		str += " " + arguments[i];
	};
	if(str && log){
		let dt = new Date();
		str = "[" + dt.getFullYear() + '-' + (dt.getMonth() + 1) + "-" + dt.getDate() + ' ' + dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds() + "." + dt.getMilliseconds() + "] " + str + "\n"
		fs.write(log, str);
	} 
}